package com.imooc.reader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.imooc.reader.enity.Evaluation;

import java.util.List;

public interface EvaluationService {
    /**
     * 查询书籍对应评论
     * @param bookId
     * @return
     */
    List<Evaluation> selectByBookId(Long bookId);

    /**
     * 分页查询
     * @param page
     * @param limit
     * @return
     */
    IPage<Evaluation> paging(Integer page, Integer limit);

    /**
     * 禁用短语
     * @param evaluationId
     * @param reason
     */
    void updateEvaluationState(Long evaluationId, String reason);
}
